<?php
namespace view;

	class UserInfo {
		public function cookieIsset() {
			return isset($_COOKIE["UserName"]);
		}

		public function sessionSet() {
			return isset($_SESSION["loggedin"]);
		}

		public function serverRequestMethod() {
			return $_SERVER["REQUEST_METHOD"];
		}

		public function getCookieInfo() {
			return [
				"username" => $_COOKIE["UserName"],
				"password" => $_COOKIE["Password"]
			];
		}

		public function getRememberData() {
			return isset($_POST["rememberBox"]);
		}

		public function getUserInfo() {
			return [
				"username" => $_POST["uName"],
				"password" => $_POST["pWord"]
			];
		}
	}
?>